|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8 ![]() |
SetfieldDict can patch initial phase in one region.now I want to patch two fields with one phase.So I code like this:
regions ( BoxToCell box (0 0.02 0) (0.003 0.023 0.1) fieldValues ( volScalarFieldValue alpha.water 0 box (0.08 0 0) (0.1 0.05 0.1) fieldValues ( volScalarFieldValue alpha.water 0 ); } ); but actually it only patched the second field i have patched,what's wrong with my code? |
|
|
|
|
|
|
|
|
#2 | |
|
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 15 ![]() |
Quote:
Code:
regions
(
boxToCell
{
box (-1 -1 -1) (1 0.6 0.1);
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
boxToCell
{
box (-1 -1 -1) (1 0.6 0.1);
fieldValues
(
volScalarFieldValue p_rgh 1000
);
}
boxToCell
{
box (-1 0.6 -1) (1 5 0);
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);
|
||
|
|
|
||
|
|
|
#3 |
|
New Member
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8 ![]() |
much help,thank you
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 37 | November 29, 2024 11:15 |
| [Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
| [Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
| [mesh manipulation] Using createPatch in place of couplePatches | sripplinger | OpenFOAM Meshing & Mesh Conversion | 8 | November 13, 2009 08:14 |
| Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |