|
[Sponsors] |
How can I update the boundary condition for a field using another field value? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 2, 2015, 04:39 |
How can I update the boundary condition for a field using another field value?
|
#1 |
New Member
Hossein Fathi
Join Date: Jan 2015
Location: The Netherlands
Posts: 3
Rep Power: 11 |
Hi dear Foamers I need to set a boundary condition in my case for H2O. The gradient of concentration of H2O changes by time with the changes of concentration of O2. So the Gradient should be updated each time step according to X_O2. I used groovyBC for this type of BC. But nothing happened and the gradient for X_H2O is uniform zero. The BC is following:
------------------------ dimensions [0 0 0 0 0 0 0]; internalField uniform 0.0; boundaryField { Agglomerates { type groovyBC; gradientExpression "dX_H2O/dx"; variable "dX_H2O/dx{Agglomerates}=0.5*X_O2"; value uniform 0; fractionExpression "0"; } } ------------------- After solution: ------------------- dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { Agglomerates { type groovyBC; refValue uniform 0; refGradient uniform 0; valueFraction uniform 1; value uniform 0; valueExpression "0"; gradientExpression "dX_H2O/dx"; fractionExpression "0"; evaluateDuringConstruction 0; variables ""; timelines ( ); lookuptables ( ); } } --------------------------- And the X_H2O on agglomerates boundary and its gradient is zero while the X_O2 is not zero on this boundary. Please help me to find an appropriate B.C. for X_H2O to update its gradient on special boundary (agglomerates) for each time step related to X_O2 (which is another field object). Thank you soooo much |
|
Tags |
groovybc, new bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 11:54 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Update boundary condition only after several iteration | novyno | OpenFOAM | 2 | July 16, 2009 18:56 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |